package com.zilue.payment.gateway.exception;

import com.zilue.payment.gateway.reurndata.enums.BusinessStatusEnum;

/**
 * Created by zilue on 2017/4/21.
 */
public class BizManagerException extends RuntimeException {
    private BusinessStatusEnum businessStatusEnum;
    private String appendMsg="";

    public BizManagerException(BusinessStatusEnum businessStatusEnum) {
        super(businessStatusEnum.getSub_msg());
        this.businessStatusEnum=businessStatusEnum;
    }
    public BizManagerException(BusinessStatusEnum businessStatusEnum,String appendMsg) {
        super(businessStatusEnum.getSub_msg());
        this.businessStatusEnum=businessStatusEnum;
        this.appendMsg=appendMsg;
    }

    public BusinessStatusEnum getBusinessStatusEnum() {
        return businessStatusEnum;
    }

    public String getAppendMsg() {
        return appendMsg;
    }

}
